package com.example.demo.service;

import org.springframework.stereotype.Service;

import com.example.demo.entity.User;

@Service
public interface IUserService {
  /**
   * Add a new user
   * 
   * @param user
   */
  Integer add(User user);
  /**
   * Get a user by id
   * 
   * @param userId
   */
  User get(Integer userId);
  /**
   * Update a user
   * 
   * @param user
   */
  Integer update(User user);
  /**
   * Delete a user by id
   * 
   * @param userId
   */
  void delete(Integer userId);
}
